import type { AttrNameData } from '../attr/types'

export interface FileData {
  name: string
  url: string
}

export interface SpuData {
  id?: number
  name: string
  description: string
  attrId: number
  tradeMarkId: number
  tradeMarkName: string
  imageList: string[]
  attrNameList: AttrNameData[]
}

export interface FiledAndValueData {
  field: string
  value: string
}

export interface SkuData {
  id?: number
  spuId: number
  attrId: number
  name: string
  price: number
  weight: number
  description: string
  filedAndValueList: FiledAndValueData[]
  imageUrl: string
  imageList?: string[]
  saleStatus: number
}
